﻿class @BooksModel extends Backbone.Model
    defaults:
        Categories: []
        CommentsBook: []
        CurrentBook: ''
        IsShowComment: false
        BookId: ''

    url: ->
        url = SiteMap.Books.Index + "/" + @attributes.BookId
        return url

    parse: (response) ->
        {
            Categories: response.Categories;
            CommentsBook: response.CommentsBook;
            CurrentBook: response.CurrentBook;
            IsShowComment: response.IsShowComment;
        }